#define _CRT_SECURE_NO_WARNINGS 1

#include<string>
#include<iostream>
using namespace std;

int main9()
{
	istream& cc = cin;
	string s1 = "";
	cc >> s1;
	//s1.clear();
	cout << s1 << endl;
	cout << s1.capacity() << endl;
	cout << s1.size() << endl;
	string s2 = "ccc";
	s1.insert(0, s2, 0);
	//s1.insert(0, s2, 1, 3);
	//s1.insert(s1.begin(), s2.begin(), s2.end());
	cout << s1 << endl;
	return 0;
}

int main1()
{
	char c;
	cin.get(c);
	cin.get(c);
	cin.get(c);
	cin.get(c);
	cin.get(c);
	cin.get(c);
	cin.get(c);
	cout << c << endl;
	return 0;
}
